import java.util.Arrays;

public class test3 {


    public static void main(String[] args){
        String[] name = new String[]{"a","b","c","c"};
        int[] count = new int[name.length];
        String[] disName = new String[5];


        /**  //判断字符串中每个字符出现的次数
         *1.循环需要检查的字符串
         *2.将字符串放入一个新的数组
         *3.循环判断两个数组每个字符出现的次数
         */

        for (int i = 0; i < name.length; i++) {
            System.out.println(name[i]);



            for (int j = 0; j < disName.length; j++) {
                if (disName[j] == name[j]){
                    disName[0] = name[i];
                }
            }


        }

    }
}
